package com.wsoft.core.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Author z001
 * @Date 2024/11/6 13:41
 */
@Data
public class OrganizationVO {
    @Schema(description = "主表id")
    private Long id;

    @Schema(description = "与id保持一致，仅用于权限控制用")
    private Long orgId;

    @Schema(description = "父组织id")
    private Long paId;

    @Schema(description = "编码(3-3-3格式)")
    private String code;

    @TableField("name")
    private String name;

    @Schema(description = "简称")
    private String abbrName;

    @Schema(description = "数据字典(集团、公司、部门)")
    @TableField("type")
    private String type;

    @Schema(description = "组织负责人")
    @TableField("member_id")
    private Long memberId;

    @TableField("sort")
    private Integer sort;

    @TableField("remark")
    private String remark;

    @TableField("auth_code")
    private String authCode;
}
